import html2text

# 创建转换器实例
text_maker = html2text.HTML2Text()
text_maker.ignore_links = True  # 可选配置

# 执行转换
html_content = "<h1>Title</h1><p>Example <a href='#'>link</a></p>"
plain_text = text_maker.handle(html_content)
print(plain_text)
